import { renderImg } from 'utils/share';

export default [
  {
    key: 'user.username',
    name: '用户名称'
  },
  {
    key: 'user.active',
    name: '是否激活',
    render: val => val ? '激活' : '禁用'
  },
  {
    key: 'user.phone',
    name: '用户手机号'
  },
  {
    key: 'user.email',
    name: '邮箱',
    newLine: true
  },
  {
    key: 'company.name',
    name: '公司名称'
  },
  {
    key: 'role.name',
    name: '角色名称'
  },
  {
    key: 'qrCodePicUrl',
    name: '二维码',
    newLine: true,
    render: val => renderImg(val)
  }
];
